import React, { memo, Suspense } from 'react';
import { Provider } from 'react-redux';

import ToDuList from './pages/ToDoList';

import store from './store';

export default memo(function App(){
  return (
    <Provider store={store}>
      <Suspense fallback={<div>page loading</div>}>
        <ToDuList />
      </Suspense>

    </Provider>
  );
});
